.class public Lcom/instagram/android/a/b/aj;
.super Ljava/lang/Object;
.source "UserRowViewBinder.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 53
    return-void
.end method


# virtual methods
.method protected a(Landroid/content/Context;)Landroid/view/View;
    .locals 3
    .parameter

    .prologue
    .line 39
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_user:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a(Lcom/instagram/android/a/b/ak;Lcom/instagram/android/model/b/e;ZZLandroid/support/v4/app/aj;)V
    .locals 3
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 22
    iget-object v0, p1, Lcom/instagram/android/a/b/ak;->a:Lcom/instagram/android/mediacache/CircularImageView;

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/mediacache/CircularImageView;->setUrl(Ljava/lang/String;)V

    .line 23
    if-eqz p4, :cond_0

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->w()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 24
    iget-object v0, p1, Lcom/instagram/android/a/b/ak;->b:Landroid/widget/TextView;

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->w()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 28
    :goto_0
    iget-object v0, p1, Lcom/instagram/android/a/b/ak;->c:Landroid/widget/TextView;

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 30
    if-eqz p3, :cond_1

    .line 31
    iget-object v0, p1, Lcom/instagram/android/a/b/ak;->d:Lcom/instagram/android/widget/FollowButton;

    invoke-virtual {v0, v2}, Lcom/instagram/android/widget/FollowButton;->setVisibility(I)V

    .line 32
    iget-object v0, p1, Lcom/instagram/android/a/b/ak;->d:Lcom/instagram/android/widget/FollowButton;

    invoke-virtual {v0, p2, p5, v2}, Lcom/instagram/android/widget/FollowButton;->a(Lcom/instagram/android/model/b/e;Landroid/support/v4/app/aj;Z)V

    .line 36
    :goto_1
    return-void

    .line 26
    :cond_0
    iget-object v0, p1, Lcom/instagram/android/a/b/ak;->b:Landroid/widget/TextView;

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 34
    :cond_1
    iget-object v0, p1, Lcom/instagram/android/a/b/ak;->d:Lcom/instagram/android/widget/FollowButton;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/FollowButton;->setVisibility(I)V

    goto :goto_1
.end method

.method public b(Landroid/content/Context;)Landroid/view/View;
    .locals 3
    .parameter

    .prologue
    .line 43
    invoke-virtual {p0, p1}, Lcom/instagram/android/a/b/aj;->a(Landroid/content/Context;)Landroid/view/View;

    move-result-object v1

    .line 44
    new-instance v2, Lcom/instagram/android/a/b/ak;

    invoke-direct {v2}, Lcom/instagram/android/a/b/ak;-><init>()V

    .line 45
    sget v0, Lcom/facebook/aw;->row_user_imageview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/CircularImageView;

    iput-object v0, v2, Lcom/instagram/android/a/b/ak;->a:Lcom/instagram/android/mediacache/CircularImageView;

    .line 46
    sget v0, Lcom/facebook/aw;->row_user_fullname:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/a/b/ak;->b:Landroid/widget/TextView;

    .line 47
    sget v0, Lcom/facebook/aw;->row_user_username:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/a/b/ak;->c:Landroid/widget/TextView;

    .line 48
    sget v0, Lcom/facebook/aw;->row_user_follow_button:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/FollowButton;

    iput-object v0, v2, Lcom/instagram/android/a/b/ak;->d:Lcom/instagram/android/widget/FollowButton;

    .line 49
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 50
    return-object v1
.end method
